package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.*;
import org.aspectj.weaver.ast.Or;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @version 1.0
 * @auther gwt
 * @date 2021/6/18 22:48
 */
public interface OrderDao {

    List<Order> findByCondition(Order order);

    Member findByMember();

    void add(Order order);

    public Map findById4Detail(Integer id);

    public Integer findOrderCountByDate(String date);

    public Integer findOrderCountAfterDate(String date);

    public Integer findVisitsCountByDate(String date);

    public Integer findVisitsCountAfterDate(String date);

    public List<Map> findHotSetmeal();

    Page<Map> findByQueryString(Map map);

    void addOrderInfo(Order order);

    void update(OrderManager orderData);

    List<Order> findById(Integer id);

    Order findOrderById(Integer id);

    List<Integer> findSetmealIdsByOrderId(Integer id);
}
